﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace CalService
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "ICalendarService" in both code and config file together.
    [ServiceContract]
    public interface ICalendarService
    { 
        [OperationContract]
        Model.User Login(string UserName, string PassWord);

        [OperationContract]
        void Register(string Username, string Password);


    }

    //[DataContract]
    //public class User
    //{
    //    int pkID = 0;
    //    string username = "";
    //    string password = "";

    //    [DataMember]
    //    public int PKID
    //    {
    //        get { return pkID; }
    //        private set { pkID = value; }
    //    }

    //    [DataMember]
    //    public string Username
    //    {
    //        get { return username; }
    //        set { username = value; }
    //    }

    //    [DataMember]
    //    public string Password
    //    {
    //        get { return password; }
    //        set { password = value; }
    //    }
    //}
}
